<?php
ob_start();
//
include("include/config.php");
include("include/functions.php");

if(isset($_SESSION['MEMBER_ID']))
{
	$id=$_SESSION['MEMBER_ID'];
	$name=$_POST['username'];
    $add=$_POST['address'];
    $cuntry=$_POST['country'];
    $zip=$_POST['zip'];
    $ph=$_POST['phone'];
    $email=$_POST['email'];
	$city=$_POST['city'];
	$state=$_POST['state'];
$data=mysql_query("insert into billinfo values('','$id','$name','$ph','$email','$cuntry','$state','$city','$add','$zip','no','')");


if($data)
{
		$x=mysql_query("select MAX(billid) from billinfo");
while($s=mysql_fetch_row($x))
{$xx=$s[0];

header("location:shippinginfo.php?billid=$xx");
}
}
else
{echo mysql_error();
}














}
	?>
